<?php
ob_start();
define('IN_FENGTOPsso', TRUE);
define("FENGTOPsso_DIR", str_replace("\\", '\\',dirname(__FILE__))."/");
//print_r($_POST);exit;

include_once FENGTOPsso_DIR.'config/global.ini.php';
include_once FENGTOPsso_DIR.'public/sqlsafe.php';
include_once FENGTOPsso_DIR.'class/base.class.php';
include_once FENGTOPsso_DIR.'ssoserver/FENGTOPsso.php';

@$GLOBALS['fetcher'] = $_SERVER['HTTP_REFERER'];

$fengtopSSO = new FENGTOPsso();

$fengtopSSO->ssoRun();
//echo $GLOBALS['fetcher'];
Header("Location:".$GLOBALS['fetcher']);

//echo "<pre>";
//echo "Global:"; print_r($GLOBALS);
//echo "</pre>";
ob_end_flush();
?>
